#ifndef __TIMER_H
#define __TIMER_H

#include "main.h"

extern int     show_value;
extern int     avg_value;
extern bool    lock;
extern bool    real_lock;
extern int     t4;
extern int     t1;

extern int     temp_set;
extern int     temp_shutdown;
extern uint8_t temp_alert;
extern int     temp_pid;
extern char    temp_offset;
extern uint8_t temp_lock;
extern int     temp_pwm;
extern bool    offset_positive;
extern uint8_t mode;
extern bool    bling;
extern uint8_t ohm;

// interrupt
extern void interrupt1(void);
extern void interrupt2(void);
extern void interrupt4(void);

// Timer
extern void InitTim4(void);
extern void InitTim1(void);
extern void InitTim2(void);

#endif
